<?php
/**
 * Created by IntelliJ IDEA.
 * User: HXL
 * Date: 2018/7/2
 * Time: 10:53
 */
namespace app\orders\validate;

use think\Validate;
class Fits extends Validate{

    protected $rule=array(
        'fitting'=>'require|unique:fittings'
    );
    protected $message=array(
        'fitting.require'=>'配件名必须',
        'fitting.unique'=>'配件已存在'
    );
}